home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 4
/
The Arsenal Files 4 (Arsenal Computer).ISO
/
casm
/
au116-as.exe
/
IBMDOS
/
KEYBOARD.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-03
|
810b
|
46 lines
#include "..\au.hpp"
#include <conio.h>
/*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*/
char *keyboard_buffer(char *string)
{
static char ret_string[30];
int ret_pos=0;
while (kbhit()) // clear it while saving it
{
ret_string[ret_pos++] = my_getch();
}
ret_string[ret_pos] = '\0';
while (*string != '\0')
{
_CL = *string;
_AH = 05;
__int__(0x16);
string++;
}
return ret_string;
}
/************************************************************************/
BYTE is_next_control_s()
{
BYTE ascii;
_AH = 1;
__int__(0x16);
asm JZ False;
ascii = _AL;
if (ascii == 0x13)
return TRUE;
#if 0
_CH = _AH; /* Push it back on the buffer */
_CL = _AL;
_AH = 05;
__int__(0x16);
#endif
False:
return FALSE;
}